package com.lap.generator.commons.tools;

import lombok.NonNull;
import lombok.experimental.UtilityClass;
import org.apache.commons.lang3.ArrayUtils;

@UtilityClass
public class TextUtil {
  public static String resolverText(@NonNull String text) {
    String[] array = text.split("[,:-_]");
    if (ArrayUtils.isNotEmpty(array)) return array[0];
    return text;
  }
}
